﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForms/SiteWF.master" AutoEventWireup="true" CodeBehind="RoomAdd.aspx.cs" Inherits="WaterfrontLodge.WebForms.RoomMgt.RoomAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<fieldset>
<legend>Add Room</legend>
    <%--<asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />--%>
    
    <table >
        <tr>
            <th align="right" style="width: 181px">
                <asp:Label ID="lblRoomNo" runat="server" Text="Room No.:"></asp:Label>
            </th>
            <td align="left" >
                <asp:TextBox ID="txtRoomNo" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="Room No is required" ForeColor="Red" 
                    ControlToValidate="txtRoomNo"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revRoomNo" runat="server" Display="Dynamic" 
                    ErrorMessage="Invalid Room No." ValidationExpression="[1-9]\d{2}" 
                    ControlToValidate="txtRoomNo" ForeColor="Red"></asp:RegularExpressionValidator>
                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                </td>
        </tr>
        <tr>
            <th align="right" style="width: 181px">
                
                <asp:Label ID="lblType" runat="server" Text="Type:"></asp:Label></th>
            <td align="left" >
                <asp:DropDownList ID="ddlRoomType" runat="server" 
                    onselectedindexchanged="ddlRoomType_SelectedIndexChanged" Height="18px" 
                    Width="161px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <th align="right" style="width: 181px">
                <asp:Label ID="lblStatus" runat="server" Text="Status:"></asp:Label></th>
            <td align="left" >
                <asp:RadioButtonList ID="rdbStatus" runat="server" 
                    RepeatDirection="Horizontal" Width="216px">
                    <asp:ListItem Value="1" Selected="True">Open</asp:ListItem>
                    <asp:ListItem Value="0">Locked</asp:ListItem>
                </asp:RadioButtonList></td>
        </tr>
        <tr>
            <th align="right" style="width: 181px">
                <asp:Label ID="lblRemarks" runat="server" Text="Remarks:"></asp:Label></th>
            <td align="left" >
                <asp:TextBox ID="txtRemarks" runat="server" TextMode="MultiLine" Height="67px" 
                    Width="279px"></asp:TextBox></td>
        </tr>
    </table>

    <br />
    <asp:Button ID="btnCreate" runat="server" Text="Create" onclick="btnCreate_Click" />&nbsp;&nbsp;
    <asp:Button ID="btnCancel" runat="server" onclick="btnCancel_Click" 
        Text="Cancel" CausesValidation="False" />
</fieldset>
</asp:Content>
